Skip to content
This repository was archived by the owner on Apr 14, 2026. It is now read-only.

Sync name conflict spec from mainline and add Pattern J tests#21

Merged
mromaszewicz merged 1 commit intomainfrom
test-update
Feb 14, 2026
Merged

Sync name conflict spec from mainline and add Pattern J tests#21
mromaszewicz merged 1 commit intomainfrom
test-update

Conversation

@mromaszewicz
Copy link
Copy Markdown
Member

Update the name_conflict_resolution test to match the mainline oapi-codegen spec additions, converting legacy extension properties (x-go-type, x-go-type-name) to experimental naming convention (x-oapi-codegen-type-override, x-oapi-codegen-type-name-override).

Add Pattern J: duplicate inline oneOf members across multiple JSON response content types, plus requestBody/schema name collision for Resource_MVO. This exercises the codegen ability to handle shared oneOf schemas without emitting duplicate type declarations.

New test cases: TestDuplicateOneOfAcrossContentTypes, TestResourceMVORequestBodyTypes, TestOneOfUnionMarshalRoundTrip, plus expanded JSON round-trip coverage for the new types.

Update the name_conflict_resolution test to match the mainline
oapi-codegen spec additions, converting legacy extension properties
(x-go-type, x-go-type-name) to experimental naming convention
(x-oapi-codegen-type-override, x-oapi-codegen-type-name-override).

Add Pattern J: duplicate inline oneOf members across multiple JSON
response content types, plus requestBody/schema name collision for
Resource_MVO. This exercises the codegen ability to handle shared
oneOf schemas without emitting duplicate type declarations.

New test cases: TestDuplicateOneOfAcrossContentTypes,
TestResourceMVORequestBodyTypes, TestOneOfUnionMarshalRoundTrip,
plus expanded JSON round-trip coverage for the new types.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@mromaszewicz mromaszewicz merged commit 3997e59 into main Feb 14, 2026
5 checks passed
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant